package xyz.eden.boot.uc.api.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.HttpHeaders;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;
import xyz.eden.boot.uc.api.dto.res.UserBaseInfoResDTO;
import xyz.eden.boot.uc.api.fallback.UserInfoFeignServiceFallback;

/**
 * UserInfoService
 *
 * @author gavin
 * @version 1.0
 */
@FeignClient(name = "xyz.eden.boot.uc", path = "uc/feign/user", fallback = UserInfoFeignServiceFallback.class)
public interface UserInfoFeignService {


    @GetMapping(value = "base/{id}")
    UserBaseInfoResDTO getBaseInfo(@PathVariable(value = "id") Long userId);
}
